<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<!DOCTYPE html>
<html>
	<head>
	    <meta charset="utf-8">
	    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	    <title><spring:message code="sys.site.title" arguments="${platformName}"/></title>
	    <meta name="keywords" content="<spring:message code="sys.site.keywords" arguments="${platformName}"/>">
	    <meta name="description" content="<spring:message code="sys.site.description" arguments="${platformName}"/>">
	    
	    <link type="text/css" rel="stylesheet" href="${staticPath}/layui/css/layui.css">
        <link type="text/css" rel="stylesheet" href="${staticPath}/layui/modules/css/login.css">
	</head>
	
	<body class="gray-bg">
		<div class="wrap">
	        <div class="main">
	        	<form method="post" action="">
		            <div class="top-logo parent">
		                <div class="top-logo-left ">
		                    <img src="${staticPath}/layui/modules/images/login/team.png" />
		                </div>
		                <div class="squern"></div>
		                <div class="right-logo">
		                    <p>商家登陆</p>
		                </div>
		            </div>
		            <div class="buddha">
		                <img src="${staticPath}/layui/modules/images/login/icon.png" />
		            </div>
		            <div class="register">
		                <label>
		                    <span class="t1"></span>
		                    <input type="text" name="username" required autocomplete="off" placeholder="账号" class="layui-input"> 
		                </label>
		            </div>
		            <div class="register2">
		                <label>
		                    <span class="t2"></span>
		                    <input type="password" name="password" required placeholder="密码" autocomplete="off" class="layui-input">
		                </label>
		            </div>
		            <div class="rember-possword">
		                <input class="check" type="checkbox" name="" title="记住密码" lay-skin="primary">
		                <span>记住密码</span>
		                <i>忘记密码</i>
		            </div>
		            <div class="btn">
		                <button type="submit" class="layui-btn layui-btn-normal">登录</button>
		                <button type="button" class="layui-btn layui-btn-normal" id="register">注册账号</button>
		            </div>
	            </form>
	        </div>
	    </div>
	    <script src="${staticPath}/layui/layui.js"></script>
	    <script type="text/javascript">
	    	layui.use(['form','jquery'], function(){
	    	     var form = layui.form,$ = layui.jquery;
	    	     
	    	     $("#register").bind({
	    	    	 click:function(){
	    	    		 window.location.href="${adminPath}/client/register";
	    	    	 }
	    	     })
	    	     
	    	     var error="${error}";
			     if (error!=""){
			    	 layer.msg(error,{icon: 2});
			     }
	    	});
		</script>
	</body>
</html>